import request from "@/utils/request";



// 获取某个帽子的历史轨迹
export function getHistoryTrace(query) {
  return request({
    url: '/core/position/historyTrace',
    method: 'get',
    params: query
  })
}

export function getHatList(query) {
  return request({
    url: `/core/hat/list`,
    method: 'get',
    params: query
  })
}
export function addHat(data) {
  return request({
    url: `/core/hat`,
    method: 'post',
    data
  })
}
export function exportHat(data) {
  return request({
    url: `/core/hat/export`,
    method: 'post',
    data
  })
}
export function deleteHat(ids) {
  return request({
    url: `/core/hat/${ids}` ,
    method: 'delete',
  })
}

export function getHat (id) {
  return request({
    url: `/core/hat/${id}`  ,
    method: 'get',
  })
}

export function updateHat(data) {
  return request({
    url: `/core/hat` ,
    method: 'put',
    data

  })
}
/*export function infoHat (id) {
  return request({
    url: `/core/hat/${id}`,
    method: 'get',

  })
}*/
